package learn_concurrent._6;

import java.util.concurrent.locks.LockSupport;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class T3 {
	static final Logger logger = LoggerFactory.getLogger(T3.class);

	public static void main(String[] args) throws InterruptedException {
		Thread t1 = new Thread(() -> LockSupport.park());
		t1.start();
		
		Thread.sleep(1000);
		logger.info("t1 status : {}", t1.getState());
		LockSupport.unpark(t1);
		Thread.sleep(1000);
		logger.info("t1 status : {}", t1.getState());
	}

}
